package com.chu.service;

import com.chu.entity.Role;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface RoleService {

    //查询所有职位
    List<Role> selectAllRole();

    //查询所有
    PageInfo<Role> findAllOrgRole(int page, int size, String name, String deptname, String state);


    //根据部门id查询职位信息
    List<Role> findAllRole(int id);

    int deleteByPrimaryKey(Integer roleid);

    int insert(Role record,int[] mid);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer roleid);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);
}